#include <iostream>//for std::cout
#include <iterator>//for ostream_iterator
#include "histogram.h"
Histogram::Histogram(int min, int max):_min(min),_max(max)
{
}
void Histogram::Draw()
{
    std::copy(_vi.begin(), _vi.end(),std::ostream_iterator<int>(std::cout, " "));
}
void Histogram::Put(int data)
{
    if( data < _min || data > _max){
        _illegal++;
    }
    else{
        _vi.push_back(data);
    }
}

